var $ = getApp(), methods = require("../methods.js");
Page(Object.assign({}, methods, {
	data: {
		isload:false,
	},
	_onLoad:function(){
		var that = this
		$.get('businessht/index',{},function(res){
			if(res.status == 2){
				$.goto(res.url,'redirect');
				return;
			}
			res.isload = true
			that.setData(res)
			if(res.binfo.type==1){
				wx.setNavigationBarTitle({
					title: '核销中心'
				})
			}
		})
	},
	saoyisao:function(d){
		var that = this;
		wx.scanCode({
			success:function(res){
				console.log(res)
				var content = res.result;
				$.goto(content);
			}
		})
	}
}))